﻿<%@ Page Language="C#" MasterPageFile="~/Administrator/Admin.Master" AutoEventWireup="true"
    CodeBehind="AddCourse.aspx.cs" Inherits="EngineeringMaster.Administrator.AddCourse"
    Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        .MyCalendar .ajax__calendar_container {
            border:1px solid #646464;
            background-color: lemonchiffon;
            color: Blue;
           background-image: url('../Img/4.png');
           width: 300px;
           height: 300px;
           font-size: x-large;
        }
        
        .MyCalendar .ajax__calendar_header
        {
        	      
            background-color: lemonchiffon;
            color: Blue;
            width: 300px;
        	
        }
        
        .MyCalendar .ajax_calendar_body
        {
        	font-size: x-large;
        	
        	}
      

        
</style>
    <table style="width: 100%; border-collapse: collapse; background-color: #FFFFFF;
        color: Black">
        <tr>
            <td style="height: 16px">
                课程名
            </td>
            <td style="height: 16px">
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </td>
            <td style="height: 16px">
                学年
            </td>
            <td style="height: 16px">
                <asp:DropDownList ID="ddCourseYear" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                学期
            </td>
            <td>
                <asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
            </td>
            <td>
                是否双语
            </td>
            <td>
                <asp:RadioButton ID="RadioButton1" runat="server" GroupName="bilingual" Text="是" />
                <asp:RadioButton ID="RadioButton2" runat="server" GroupName="bilingual" Text="否" />
            </td>
        </tr>
        <tr>
            <td>
                教材
            </td>
            <td>
                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            </td>
            <td>
                是否面向外
            </td>
            <td>
                <asp:RadioButton ID="RadioButton3" runat="server" GroupName="external" Text="是" />
                <asp:RadioButton ID="RadioButton4" runat="server" GroupName="external" Text="否" />
            </td>
        </tr>
        <tr>
            <td>
                考核形式
            </td>
            <td>
                <asp:DropDownList ID="ddExamMode" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                拟招人数
            </td>
            <td>
                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="height: 16px">
                信用
            </td>
            <td style="height: 16px">
                <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
            </td>
            <td style="height: 16px">
                教师
            </td>
            <td style="height: 16px">
                <asp:DropDownList ID="DropDownList4" runat="server" DataSourceID="SqlDataSource1"
                    DataTextField="TeacherName" DataValueField="TeacherName">
                    <asp:ListItem></asp:ListItem>
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MSEDataBaseConnectionString %>"
                    SelectCommand="SELECT [TeacherName], [TeaSchoolID], [TeacherID] FROM [Teacher]">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td>
                信用时间
            </td>
            <td>
                <asp:TextBox ID="tbCredit" runat="server"></asp:TextBox>
                <asp:CalendarExtender ID="CalendarExtender2" runat="server" 
                    TargetControlID="tbCredit"  Format="yyyy-MM-dd" CssClass="MyCalendar" TodaysDateFormat="yyyy-MMMM-dd" 
                   >
                </asp:CalendarExtender>
            </td>
            <td>
                上课地点
            </td>
            <td>
                <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                上课时间
            </td>
            <td>
                <asp:TextBox ID="tbDate" runat="server" Height="20px" Width="219px"></asp:TextBox>

                <asp:CalendarExtender ID="CalendarExtender1" runat="server" 
                    TargetControlID="tbDate"  Format="yyyy-MM-dd" CssClass="MyCalendar" TodaysDateFormat="yyyy-MMMM-dd" 
                   >
                </asp:CalendarExtender>
    
            </td>
            <td>
                授课模式
            </td>
            <td>
                <asp:RadioButton ID="RadioButton5" runat="server" Text= "实践" GroupName = "instruMode"/>
                <asp:RadioButton ID="RadioButton6" runat="server" Text = "理论" GroupName = "instruMode"/>
            </td>
        </tr>
        <tr>
            <td>
                属性
            </td>
            <td>
                <asp:TextBox ID="TextBox7" runat="server" Height="127px" Width="381px"></asp:TextBox>
            </td>
            <td>
                所属类别
            </td>
            <td>
                <asp:DropDownList ID="DropDownList5" runat="server" 
                    DataSourceID="SqlDataSource2" DataTextField="CategoryType" 
                    DataValueField="CategoryType">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:MSEDataBaseConnectionString %>" 
                    SelectCommand="SELECT [CategoryType], [CategoryName] FROM [CourseType]">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
        <td colspan="4" align="right" style ="position: relative; margin-right: 200px">
            <asp:Button ID="Button1" runat="server" Text="添加" Width="100px"  />
        </td></tr>
    </table>
</asp:Content>
